package code.google.jcontainer.event;

import code.google.jcontainer.AbstractContainer;

import java.util.EventObject;

/**
 * @author <a href="mailto:jfox.young@gmail.com">Young Yang</a>
 */
public class ContainerEvent extends EventObject {

    private AbstractContainer container;

    public ContainerEvent(AbstractContainer container) {
        super(container.getName());
        this.container = container;
    }

    public String getContainerName() {
        return (String)getSource();
    }

    public AbstractContainer getContainer() {
        return container;
    }

}